import request from '@/utils/request'

// 提交订单生成二维码(普通会诊,项目检测)
export function createOrder(query) {
  return request({
    url: '/wx/pay/create/order',
    method: 'GET',
	params:query
  })
}
// 提交订单生成二维码(特需会诊)
export function createOrderSpecial(query) {
  return request({
    url: '/wx/pay/create/order/ningbo/special/needs',
    method: 'GET',
	params:query
  })
}

//循环查询支付状态 普通会诊,项目检测
export function getWxPay(query) {
  return request({
    url: '/wx/pay/query',
    method: 'GET',
	params:query
  })
}
//循环查询支付状态 普通会诊,项目检测 免费
export function getWxPayFree(query) {
  return request({
    url: '/wx/pay/query/free',
    method: 'GET',
	params:query
  })
}
//循环查询支付状态 特需会诊
export function getWxPaySpecial(query) {
  return request({
    url: '/wx/pay/query/special/needs',
    method: 'GET',
	params:query
  })
}
//循环查询支付状态 特需会诊 免费
export function getWxPaySpecialFree(query) {
  return request({
    url: '/wx/pay/query/special/needs/free',
    method: 'GET',
	params:query
  })
}
//确认退款
export function payRefundOrder(query) {
  return request({
    url: '/wx/pay/refund/order',
    method: 'GET',
	params:query
  })
}